/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.dao.impl.common;

import java.io.Serializable;
import java.util.List;

/**
 *@ClassName: BaseMongoDao
 *@Description: TODO()
 *@author youjun
 *@date 2017年6月29日 上午10:44:58
 */
public interface BaseMongoDao<T extends Serializable> {

	/**
	 *@Title: save
	 *@Description:保存单条数据
	 *@return void
	 *@author youjun
	 *@date 2017年8月22日 下午2:42:06
	 *@param entity
	 */
	void save(T entity);

	/**
	 *@Title: batchSave
	 *@Description: 批量保存
	 *@return void
	 *@author youjun
	 *@date 2017年8月22日 下午2:41:55
	 *@param entityList
	 */
	void batchSave(List<T> entityList);

	/**
	 *@Title: batchSave
	 *@Description: TODO()
	 *@return void
	 *@author youjun
	 *@date 2017年9月12日 下午4:35:55
	 *@param entityList
	 *@param collectionName
	 */
	void batchSave(List<T> entityList, String collectionName);
	
	
}
